<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head> 
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
  <title>用户中心 - 聚美优品</title> 
  <link rel="stylesheet" type="text/css" href="http://localhost/jumei/Application/Index/View/Public/css/jumei.min.css"/>
  <link rel="stylesheet" type="text/css" href="http://localhost/jumei/Application/Index/View/Public/css/jumei_usercenter.min.css"/>
  <!-- 引头部 -->
  <?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<script src="http://localhost/jumei/Static/js/jquery-1.7.2.min.js"></script>
	<script src="http://localhost/jumei/Application/Index/View/Public/js/index.js"></script>
	<link rel="stylesheet" type="text/css" href="http://localhost/jumei/Application/Index/View/Public/css/style.css"/>
</head>
<body>
	<!--网页右侧导航条开始-->
	<div id="web-left">
		<ul class="top">
			<li class="login">
				<a href="">
					<span class="login-logo"></span>
				</a>
				<div class="display-box">
					<span class="trigon"></span>
					<span class="box-close"></span>
					    <?php if($hd['session']['uid']&&$hd['session']['user']){ ?>
						<!--登陆后替换部分-->
						<div class="login-after">
							<p class="login-logo"></p>
							<p class="username">用户名：<?php echo $hd['session']['user'];?></p>
						</div>
						<!--登陆后替换部分结束-->
					<?php }else{ ?>
						<!--未登录替换-->
						<p class="login-logo-no"></p>
						<p class="login-reg">
							你好！请
							<a href="<?php echo U('Login/index');?>">登录</a>
							 | 
							 <a href="<?php echo U('Reg/index');?>">注册</a>
						</p>
						<!--未登录替换结束-->
					<?php } ?>
					<p class="my-order-box">
						<a href="<?php echo U('Center/index');?>" class="my-order">我的订单</a>
						<a href="<?php echo U('Center/index');?>" class="my-collect">我的收藏</a>
					</p>
				</div>
			</li>
			<li class="shop-car">
				<a href="<?php echo U('Cart/index');?>">
					<span class="top-line"></span>
					<span class="bottom-line"></span>
					<span class="car-logo"></span>
					<span class="text">购物车</span>
					<span class="num">
						    <?php if($hd['session']['cart']['total_rows']){ ?>
							<?php echo $hd['session']['cart']['total_rows'];?>
						<?php }else{ ?>
							0
						<?php } ?>
					</span>
				</a>
			</li>
			<li class="my-money">
				<a href="<?php echo U('Center/index');?>">
					<span></span>
				</a>
				<div class="display-box-l">
					我的资产
					<span class="trigon"></span>
				</div>
			</li>
			<li class="my-hope">
				<a href="<?php echo U('Center/index');?>">
					<span></span>
				</a>
				<div class="display-box-l">
					我的心愿单
					<span class="trigon"></span>
				</div>
			</li>
			<li class="my-look">
				<a href="<?php echo U('Center/index');?>">
					<span></span>
				</a>
				<div class="display-box-l">
					我看过的
					<span class="trigon"></span>
				</div>
			</li>
			<li class="my-want">
				<a href="<?php echo U('Center/index');?>">
					<span>充</span>
				</a>
				<div class="display-box-l">
					我要充值
					<span class="trigon"></span>
				</div>
			</li>
		</ul>
		<ul class="bottom">
			<li class="code">
				<a href="">
					<span></span>
				</a>
			</li>
			<li class="kefu">
				<a href="">
					<span></span>
				</a>
			</li>
		</ul>
		<div class="top-back">
				<a href="javascript:;">
					<span></span>
				</a>
				<div class="display-box display-box-l">
					返回顶部
					<span class="trigon"></span>
				</div>
		</div>
	</div>
	<!--网页右侧导航条结束-->
	<!--头部开始-->
	<div id="top">
		<div class="top-box">
			<ul class="welcome">
				    <?php if($hd['session']['uid']&&$hd['session']['user']){ ?>
					<!--替换-------------------------------->
					<li>欢迎您,</li>
					<li><a href="<?php echo U('Center/index');?>" class="login"><?php echo $hd['session']['user'];?></a></li>
					<li>[ <a href="<?php echo U('Common/out');?>" class="login">退出</a> ]</li>
					<!-- 登陆替换结束 -->
				<?php }else{ ?>
					<!-- 未登录替换 -->
					<li>欢迎来到聚美！</li>
					<li><a href="<?php echo U('Login/index');?>">请登录</a></li>
					<li><a href="<?php echo U('Reg/index');?>">快速注册</a></li>
					<!-- 未登录替换结束 -->
				<?php } ?>
			</ul>
			<p class="city">送至 <span>北京</span><span class="city-logo"></span></p>
			<ul class="right">
				<li><a href="<?php echo U('Center/index');?>">订单查询</a></li>
				<li class="collect">
					<span class="collect-logo"></span>
					<a href="<?php echo U('Center/index');?>">收藏的品牌</a>
				</li>
				<li class="myjumei">
					<a href="<?php echo U('Center/index');?>">我的聚美</a>
					<span class="myjumei-logo"></span>
					<ul class="myjumei-list">
						<li><a href="<?php echo U('Center/index');?>">我的订单</a></li>
						<li><a href="<?php echo U('Center/index');?>">我的足迹</a></li>
					</ul>
				</li>
				<li class="phone"><span class="line"></span><span class="phone-logo"></span><a href="">手机聚美</a></li>
				<li class="koubei">
					<a href=""><span class="koubei-logo"></span>口碑中心</a></li>
				<li class="look">
					<span class="line"></span>
					<a href=""><span class="look-logo"></span>查看分类</a></li>
				<li class="more">
					<a href="">更多</a>
					<span class="more-logo"></span>
				</li>
			</ul>
		</div>
	</div>
	<!--头部结束-->
<!--搜索栏和黑色导航开始-->
<div id="seach-black" style="background-color: #FFFFFF;">
	<!--搜索栏开始-->
	<div id="seach-box">
		<div id="seach">
			<a href="<?php echo U('Index/index');?>" class="web-logo"></a>
			<a href="<?php echo U('Index/index');?>" class="web-logo-2"></a>
			<div class="seach-center">
				<form action="" method="post" class="seach-form">
					<input type="text" name="" id="seach-text" />
					<input type="submit" value="搜美妆" class="seach-submit"/>
				</form>
				<ul class="hotword">
					<?php foreach ($hotCate as $k=>$v){?>
						<li><a href="<?php echo U('List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?></a><span class="line"></span></li>
					<?php }?>
				</ul>
			</div>
			<div class="shop-box">
				<a href="<?php echo U('Cart/index');?>" class="shop-car">
					<img src="http://localhost/jumei/Application/Index/View/Public/images/car.gif" alt="" />
					<p class="car-text">去购物车结算</p>
					<span class="car-logo"></span>
				</a>
				<ul class="cart-good-list">
					    <?php if(!$hd['session']['cart']['goods']){ ?>
						<li class="null">
							<p>购物车中还没有商品，</p>
							<p>快去挑选心爱的商品吧！</p>
						</li>
					<?php }else{ ?>
						<?php foreach ($hd['session']['cart']['goods'] as $k=>$v){?>
							<li class="cart-good">
								<img src="http://localhost/jumei/<?php echo $v['options']['logo'];?>" alt="" class="cart-good-img" />
								<a href="<?php echo U('Content/index',array('gid'=>$v['id']));?>" class="cart-good-title"><?php echo $v['name'];?></a>
								<p class="cart-good-money"><span>￥<?php echo $v['price'];?></span> x <?php echo $v['num'];?></p>
							</li>
						<?php }?>
						<div class="bottom-go">
							<div class="money-left">
								<p class="good-num">
									共 <span><?php echo $hd['session']['cart']['total_rows'];?></span> 件商品
								</p>
								<p class="good-money">
									共计<span class="logo">￥</span><span><?php echo $hd['session']['cart']['total'];?></span>
								</p>
							</div>
							<a href="<?php echo U('Cart/index');?>" class="go-pay">去购物车结算</a>
						</div>
					<?php } ?>
				</ul>
			</div>
		</div>
	</div>
	<!--搜索栏结束-->
	<!--黑色导航栏-->
	<div id="black-nav">
		<div class="black-nav-box">
			<ul class="nav-list">
				<li class="home"><a href="<?php echo U('Index/index');?>">首页</a></li>
				<li>
					<a href="<?php echo U('Index/index');?>" class="nav-title">极速免税店</a>
					<span class="flag"></span>
				</li>
				<li class="nav-mall">
					<a href="<?php echo U('Index/index');?>" class="nav-title">美妆商城</a>
					<span class="line"></span>
					<div class="mall-menu">
						<div class="left-img-box">
							<a href="<?php echo U('List/index',array('cid'=>7));?>" class="left-img"><img src="http://localhost/jumei/Application/Index/View/Public/images/30573_254_135_003-web.jpg" alt="" /></a>
							<a href="<?php echo U('List/index',array('cid'=>7));?>" class="left-img"><img src="http://localhost/jumei/Application/Index/View/Public/images/30573_254_135_005-web.jpg" alt="" /></a>
						</div>
						<ul class="right-cate-box" style="margin-top: 10px;">
							<?php foreach ($headData as $ka=>$va){?>
								<li class="category">
									<p class="ctitle">
										<span class="cate-logo1" ></span>
										<?php echo $va['cname'];?>
									</p>
									<div class="cate-son-box">
										<?php foreach ($va['son'] as $kk=>$vv){?>
											<a href="<?php echo U('List/index',array('cid'=>$vv['cid']));?>"><?php echo $vv['cname'];?></a>
										<?php }?>
									</div>
								</li>
							<?php }?>
						</ul>
					</div>
				</li>
				<li><a href="<?php echo U('Index/index');?>" class="nav-title">服装运动</a></li>
				<li><a href="<?php echo U('Index/index');?>" class="nav-title">鞋包配饰</a></li>
				<li>
					<a href="<?php echo U('Index/index');?>" class="nav-title">正品保证</a>
					<span class="line"></span>
				</li>
			</ul>
			<ul class="nav-right">
				<li><a href=""><span class="logo1"></span></a></li>
				<li><a href=""><span class="logo2"></span></a></li>
				<li><a href=""><span class="logo3"></span></a></li>
			</ul>
		</div>
	</div>
	<!--黑色导航栏结束-->
</div>
<!--搜索框和黑色导航合并结束-->

  <!--============================主体开始==========================================-->
  <div class="profile" style="margin-bottom:200px"> 
   <div class="nav"> 
    <div class="notice"> 
     <img src="http://localhost/jumei/Application/Index/View/Public/images/avatar_small.png" alt="JM181CHHE7221" /> 
     <p class="nickname"><?php echo $hd['session']['user'];?></p> 
     <p>普通会员</p> 
     <p class="uid">用户ID: <?php echo $userData['uid'];?></p> 
    </div> 
    <h2><b></b>我的聚美优品</h2> 
    <a href="javascript:;" class="list selected"><b></b>我的订单</a> 
<!--     <a href="javascript:;" class="fav"><b></b>我的收藏</a> 
    <a href="javascript:;" class="member"><b></b>我的会员等级</a> 
    <a href="javascript:;" class="addr"><b></b>管理收货地址</a>  -->
   </div> 
   <h1>我的订单</h1> 
    <!-- 替换内容的地方 开始 ================ --> 
   <div class="content"> 
    <div class="filter"> 
     <a href="http://localhost/jumei/index.php/Index/Center/index/w/0"     <?php if(!$hd['get']['w']){ ?>class="curr"<?php } ?>>全部订单</a> 
     <a href="http://localhost/jumei/index.php/Index/Center/index/w/1"    <?php if($hd['get']['w']==1){ ?>class="curr"<?php } ?>>等待付款</a> 
     <a href="http://localhost/jumei/index.php/Index/Center/index/w/2"    <?php if($hd['get']['w']==2){ ?>class="curr"<?php } ?>>已付款</a> 
     <a href="http://localhost/jumei/index.php/Index/Center/index/w/3"    <?php if($hd['get']['w']==3){ ?>class="curr"<?php } ?>>交易完成</a>
    </div> 
        <?php if($data){ ?>
    <table id="order-list" class="order_table"> 
     <tbody>
      <tr class="order_list_title" style="border: 1px solid rgb(204, 204, 204);"> 
       <th style="width: 195px">订单信息</th> 
       <th style="width: 80px">订购商品</th> 
       <th style="width: 40px">件数</th> 
       <th style="width: 80px">单价</th> 
       <th style="width: 70px">商品操作</th> 
       <th style="width: 120px">订单状态</th> 
       <th style="width: 90px">订单操作</th> 
      </tr>
      <!--一件商品-->
      <?php foreach ($data as $k=>$v){?>
        <tr style="border: 1px solid rgb(204, 204, 204);"> 
         <td class="order_info_td">
         	<p>订单号: <?php echo $v['onum'];?></p>
         	<p>商品金额: &yen;<?php echo $v['subtotal'];?></p>
         	<!-- <p> 由 聚美优品 发货</p> -->
         </td> 
         <td class="item_title">
         	<a href="<?php echo U('Content/index',array('gid'=>$v['gid']));?>" target="_blank" title="<?php echo $v['gname'];?>">
         		<img src="http://localhost/jumei/<?php echo $v['gpic'];?>" alt="<?php echo $v['gname'];?>" style="width:60px;height:60px" />
         	</a>
         </td> 
         <td><?php echo $v['buy_num'];?> </td> 
         <td>&yen;<?php echo $v['dan'];?></td> 
         <td>
         	<p>
         		<a href="<?php echo U('Content/index',array('gid'=>$v['gid']));?>" target="_blank">再次购买</a>
         	</p>
         </td> 
         <td><span class="status_grey"><?php echo $v['state'];?></span> 
          <!--判断海淘自营订单包裹状态显示--> </td> 
         <td>
              <?php if($v['state']=='待发货'){ ?>
            等待发货
          <?php }else if($v['state']=='已完成'){ ?>
          完成交易
          <?php }else{ ?>
           <p>
              <a href="javascript:;"onclick="if(confirm('确定已经收到商品了吗？')) location.href='<?php echo U('Center/collect',array('oid'=>$v['oid']));?>'" >确认收货</a>
           </p>
          <?php } ?>
         </td> 
        </tr> 
        <!--一件商品结束-->
        <tr class="separator" style="border: 1px solid rgb(204, 204, 204);"> 
         <td colspan="7"></td> 
        </tr> 
      <?php }?>
     </tbody>
    </table> 
    <?php }else{ ?>
    <div class="null">
      <div class="null-box">
        <span class="logo"></span>
        <span class="title">您目前没有相关订单</span>
      </div>
    </div>
    <style type="text/css">
      .null{
        height: 258px;
        width: 767px;
        padding-top: 170px;
        border: 1px solid #dbd6d0;
        border-top: none;
      }
      .null .null-box{
        height: 59px;
        width: 270px;
        margin: 0 auto;
      }
      .null .null-box .logo{
        height: 59px;
        width: 90px;
        float: left;
        background: url(http://localhost/jumei/Application/Index/View/Public/images/null_icon.png) no-repeat;
      }
      .null .null-box .title{
        line-height: 59px;
        font-size: 18px;
        color: #797979;
        padding-left: 8px;
      }
    </style>
    <?php } ?>
    <!-- <table id="table-header-fixed" style="display: none;">
     <tbody>
      <tr class="order_list_title"> 
       <th style="width: 195px">订单信息</th> 
       <th style="width: 80px">订购商品</th> 
       <th style="width: 40px">件数</th> 
       <th style="width: 80px">单价</th> 
       <th style="width: 70px">商品操作</th> 
       <th style="width: 120px">订单状态</th> 
       <th style="width: 90px">订单操作</th> 
      </tr>
     </tbody>
    </table>  -->
<!--    <a href="#" class="backtotop" style="bottom: 100px;"><b></b>回到顶部</a> -->
    <style type="text/css">
     .order_list_title {
       background-color: white;
     }
     .separator td {
       height: 15px;
       border-left: 1px solid white;
       border-right: 1px solid white;
     }
      #cboxOverlay{
        z-index: 10003;
      }
      #colorbox{
        z-index: 10004;
      }
      #cboxContent{
        border: none;
        background: #FF659B;
      }
      #cboxLoadedContent{
        margin-top:0px;
      }
      #cboxClose {
        background: url(http://p0.jmstatic.com/templates/jumei/images/wish_deal/popup_new_close.jpg) no-repeat 0 0 transparent;
        width: 12px;
        height: 11px;
        top:8px;
        margin-right: 0px;
        text-align: left;
        text-indent: -9999px;
        padding-right: 10px;
      }
      #cboxClose:hover{
        background: url(http://p0.jmstatic.com/templates/jumei/images/wish_deal/popup_new_close.jpg) no-repeat 0 0 transparent;
      }
      .popup_box_new {
        width: 400px;
        _padding-bottom:20px;
      }
      .popup_box_new .title{
        height: 28px;
        line-height: 28px;
        text-indent: 15px;
        background: url(http://p0.jmstatic.com/templates/jumei/images/wish_deal/title_bg.jpg) repeat-x 0 0 transparent;
        color:#fff;
        font-size: 14px;
      }
      .popup_box_new .cont{
        padding: 15px;
      }
      .popup_box_new p{
        margin-top:20px;
        font-size: 16px;
        text-align: left;
        overflow: hidden;
        font-family: '微软雅黑','YaHei','黑体',Tahoma,Helvetica,arial,sans-serif;
      }
      .popup_box_new .btns{
        padding-left: 88px;
      }
      .popup_box_new .btn{
        float: left;
        display: block;
        width: 88px;
        height: 28px;
        line-height: 28px;
        text-align: center;
        overflow: hidden;
        background: url(http://p0.jmstatic.com/templates/jumei/images/wish_deal/btn_new_bg.jpg) repeat-x 0 0 transparent;
        font-family: 宋体;
      }
      .popup_box_new p a:hover{
        text-decoration: none;
      }
      .popup_box_new .btns .btn_confirm{
        color:#fff;
        margin-right: 15px;
      }
      .popup_box_new .btns .btn_cancel{
        color:#333;
        border-left: 1px solid #ccc;
        border-right: 1px solid #ccc;
        background-position: 0 -32px;
      }
    </style> 
    <!-- <div class="dialog_s charge_dialog cancle_order_dialog" title="取消确认"> 
     <div class="alert warning"></div> 
     <div class="cont"> 
      <p class="alert_con"></p> ﻿
      <span class="spark">*</span> 
      <span class="select_ui">
       <div class="select_arrow"></div>
       <div class="select_text_ui" style="min-width: 7.5em;">
        等待加载...
       </div><select id="select_reasons"> <option value="0">等待加载...</option> </select></span> 
      <textarea style="margin-top: 20px"></textarea> 
      <p class="input_error"></p> 
     </div> 
     <div class="btns"> 
      <a href="javascript:void(0)" class="btn_mid_pink">确认</a> 
      <a href="javascript:void(0)" class="btn_mid_grey">取消</a> 
     </div> 
    </div> 
    <div class="colorbox_html_ask" style="display: none;"> 
     <div class="popup_box_new"> 
      <div class="title">
       红包退货
      </div> 
      <div class="cont"> 
       <p class="tips"> 您确定要将红包退货吗？退货会删除您所购买的红包，并且您不能再次购买红包。相应的退款会退回您的聚美余额。 </p> 
       <p class="btns"> <a class="btn btn_confirm" href="javascript:void(0);">确定</a> <a class="btn btn_cancel" href="javascript:void(0);">取消</a> </p> 
      </div> 
     </div> 
    </div> 
    <div class="colorbox_html_success" style="display: none;"> 
     <div class="popup_box_new"> 
      <div class="title">
       红包退货
      </div> 
      <div class="cont"> 
       <p class="tips"> 红包已成功退货，相应退货已退回您的聚美余额。 </p> 
       <p class="btns" style="padding-left: 0px;"> <a href="/i/account/balance" class="btn btn_confirm" style="margin-left:20px;width:150px;">前往我的余额</a> <a href="javascript:void(0);" class="btn btn_cancel" style="width:100px;">知道了</a> </p> 
      </div> 
     </div> 
    </div> 
    <div class="colorbox_html_fail" style="display: none;"> 
     <div class="popup_box_new"> 
      <div class="title">
       红包退货
      </div> 
      <div class="cont"> 
       <p class="tips"> 您的红包已被使用。若需退货，需将使用红包的订单商品全部退货。 </p> 
       <p class="btns" style="padding-left: 0px; text-align: center;"> <a class="btn btn_cancel" href="javascript:void(0);" style="width:100px; float:none; margin: auto;">知道了</a> </p> 
      </div> 
     </div> 
    </div> --> 
   </div> 
   <!-- 替换内容的地方 结束-->
  </div> 
 </body>
</html>